#ifndef __QTCH_ORM_DELETE_H__
#define __QTCH_ORM_DELETE_H__

#include <memory>
#include <string>

#include "label.h"


namespace qtch {
namespace orm {

class Table;
class Delete {
public:
    typedef std::shared_ptr<Delete> ptr;


    Delete(std::shared_ptr<Table> table);
    bool init(const tinyxml2::XMLElement& node);

    std::string gen_inc();
    std::string gen_src();
    std::string gen_ParameterList();
    std::string gen_default_inc();
    std::string gen_default_src();



    const std::string& getId() const { return m_id;}


private:
    std::shared_ptr<Table> m_table;
    std::vector<Label::ptr> m_label;
    std::string m_id;
    bool m_usingEntiry = false;

};



}
}


#endif